package com.team12.hotel404.service.serviceImpl;

import com.alipay.api.AlipayApiException;
//import com.example.alipaydemo.bean.AlipayBean;
//import com.example.alipaydemo.config.AlipayUtil;
//import com.example.alipaydemo.service.PayService;
import com.team12.hotel404.bean.AlipayBean;
import com.team12.hotel404.config.AlipayUtil;
import com.team12.hotel404.service.PayService;
import org.springframework.stereotype.Service;

/* 支付服务 */
@Service
public class PayServiceImpl implements PayService {
@Override
public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
 return AlipayUtil.connect(alipayBean);
 }
}